import React from 'react'
import { Login } from './login'
import JSONP from 'json5'
import jsonp from 'jsonp'
class App extends React.Component {
    state = {
        list: []
    }
    //页面打开后自动登录
    componentDidMount() {
        window.jQuery110206572222239818177_1617624169031(){
            console.log(data)
        }
        jsonp("",{params})
        Login().then(res => {
            const fn = Function(res.data)
            fn()
            // this.setState({
            //     list = res.data
            // })
        })
    }
    render() {
        return <div>
            {this.state.list.map((item, index) => {
                return <h1>{item.data}</h1>
            })}
        </div>
    }
}
export default App 
